﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Yun.IM
{
    public class UserChatListModel
    {
        /// <summary>
        /// 编号
        /// </summary>
        [XmlElement("id")]
        public long Id { get; set; }

        /// <summary>
        /// 发送用户ID
        /// </summary>
        [XmlElement("fromuser_id")]
        public long FromUserId { get; set; }

        /// <summary>
        /// 发送用户昵称
        /// </summary>
        [XmlElement("real_name")]
        public string RealName { get; set; } 

        /// <summary>
        /// 接收用户ID
        /// </summary>
        [XmlElement("to_user_id")]
        public long ToUserId { get; set; }

        /// <summary>
        /// 目标ID
        /// </summary>
        [XmlElement("target_id")]
        public long TargetId { get; set; }


        /// <summary>
        /// 发送用户头像
        /// </summary>
        [XmlElement("avatar")]
        public string Avatar { get; set; }


        /// <summary>
        /// 消息类型
        /// </summary>
        [XmlElement("object_name")]
        public string ObjectName { get; set; }

        /// <summary>
        /// 发送消息内容
        /// </summary>
        [XmlElement("content")]
        public string Content { get; set; }


        /// <summary>
        /// 消息接收时间
        /// </summary>
        [XmlElement("msg_time_stamp")]
        public string MsgTimeStamp { get; set; }

    }
}
